package com.changgou.goods.feign;

import com.changgou.goods.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: changgou_parent
 * @ClassName: SkuFeign
 * @Description: TODO(暴露ES搜索需要调用的微服务接口)
 * @Author: Xu Fj
 * @Date: 2020/2/29 17:15
 */
@FeignClient(name = "goods")
public interface SkuFeign {

    @GetMapping("/sku/spu/{spuid}")
    public List<Sku> findListBySpuId(@PathVariable("spuid") String spuid);
}